﻿using System;
using NHibernate;
using TestBat.IModels.Domain;
using TestBat.IModels.Repositories;
using TestBat.Models.Domain;

namespace TestBat.Models.Repositories
{
    public class TestRepository : Repository<ITest, Guid>, ITestRepository
    {
        public TestRepository(ISessionFactory sessionFactory)
            : base(sessionFactory)
        {
        }

        public override ITest GetByID(Guid ID)
        {
            return Session.Get<Test>(ID);
        }

        public ITestTask GetTestTaskByID(Guid ID)
        {
            return Session.Get<TestTask>(ID);
        }
    }
}
